package com.itany.homework.demo2;

import java.util.List;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/11/7 9:23
 * Version:1.0-SNAPSHOT
 * Description:
 */
public class Test {

    public static void main(String[] args) {
//        EmpService empService = (EmpService) ObjectFactory.getObject("empServiceTarget");
        EmpService empService = (EmpService) ObjectFactory.getObject("empService");
        List<Emp> emps = empService.findAll();
        for(Emp emp : emps){
            System.out.println(emp);
        }
    }

}
